package org.hyh.autowired;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/11/30
 */
public class TestAutoWire {

	public static void main(String[] args) {

		ApplicationContext ac = new ClassPathXmlApplicationContext("beanAuto.xml");
		U bean = ac.getBean(U.class);
		String[] beanDefinitionNames = ac.getBeanDefinitionNames();
//		for (String s : beanDefinitionNames) {
//			System.out.println(s);
//		}
		bean.testAspectJ();
	}
}
